#!/bin/bash
make clean && bear -- make qemu
qemu_pid=$(pgrep qemu-system)
if [ -n "$qemu_pid" ]; then
        kill -SIGINT "$qemu_pid"
            echo "QEMU process with PID $qemu_pid has been interrupted."
        else
                echo "No QEMU process found running."
fi
mv compile_commands.json .vscode/compile_commands.json
